/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.sevenpriciples.plk.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.sevenpriciples.plk.plk.compliance.impl.CalculateTotalPriceImp;
import za.ac.cput.sevenpriciples.plk.plk.compliance.impl.PrintTotalCostImp;
import za.ac.cput.sevenpriciples.plk.plk.compliance.impl.ProductImp;
import za.ac.cput.sevenpriciples.plk.plk.violation.impl.CalculateTotalPrice;
import za.ac.cput.sevenpriciples.plk.plk.violation.impl.PrintTotalCost;
import za.ac.cput.sevenpriciples.plk.plk.violation.impl.ProductImpl;

/**
 *
 * @author Administrator
 */
@Configurable
public class AppConfig {
    @Bean(name = "product")
    public ProductImpl product(){
        return new ProductImpl();
    }
    
    @Bean(name = "calculate")
    public CalculateTotalPrice calaculate(){
        return new CalculateTotalPrice();
    }
    
    @Bean(name = "print")
    public PrintTotalCost print(){
        return new PrintTotalCost();
    }
    
    @Bean(name = "newPrint")
    public PrintTotalCostImp printCost(){
        return new PrintTotalCostImp();
    }
    
    @Bean(name = "newCalculate")
    public CalculateTotalPriceImp calculateCost(){
        return new CalculateTotalPriceImp();
    }
    
    @Bean(name = "newProduct")
    public ProductImp productCost(){
        return new ProductImp();
    }
}
